﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace KerriganDataContract.Intructor
{
    [DataContract]
    public class InstructorAvailabilityDC : INotifyPropertyChanged
    {
        private Int32 _Id;
        private InstructorDC _Instructor;
        private DateTime _StartDate;
        private DateTime _EndDate;

        [DataMember]
        public Int32 Id
        {
            get { return this._Id; }
            set { this._Id = value; OnPropertyChanged("Id"); }
        }


        [DataMember]
        public InstructorDC Instructor
        {
            get { return this._Instructor; }
            set { this._Instructor = value; OnPropertyChanged("Instructor"); }
        }
                    

        [DataMember]
        public DateTime StartDate
        {
            get { return this._StartDate; }
            set { this._StartDate = value; OnPropertyChanged("StartDate"); }
        }

        [DataMember]
        public DateTime EndDate
        {
            get { return this._EndDate; }
            set { this._EndDate = value; OnPropertyChanged("EndDate"); }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }
    }
}
